package com.ry.gram;

public class AImpl extends A {
    @Override
    protected void doThing() {
        System.out.println("111-----------------");
    }

    public static void main(String[] args) {
        A a=new AImpl();
        a.newB().regedit();
    }

    @Override
    B newB() {
        return new B();
    }
}
